import requests
import json

# #注册
# register_url=" http://localhost:7777/register"
# headers = {
#     "Content-Type": "application/json" 
# }

# data={
#     "user_name":"222",
#     "password":"222",
# }

# rs=requests.post(register_url, headers=headers, data=json.dumps(data))
# print(rs.text)

#登录
login_url=" http://localhost:7777/login"
headers = {
    "Content-Type": "application/json" 
}

data={
    "user_name":"222",
    "password":"222",
}

rs=requests.post(login_url, headers=headers, data=json.dumps(data))
print(rs.text)